-module(yaml2proto_SUITE).
-author("Rain").

-include_lib("common_test/include/ct.hrl").
-export([all/0, proto2_export/1, proto3_export/1]).

%% ct.

all() ->
    [proto2_export, proto3_export].

-define(BASE_DIR, "../../lib/build_proto/test/examples/yaml2proto/").

proto2_export(_Config) ->
    BaseDir = ?BASE_DIR,
    ok = yaml2proto:build(BaseDir ++ "yaml",
        BaseDir ++ "proto", BaseDir ++ "proto_cmd", "2").

proto3_export(_Config) ->
    BaseDir = ?BASE_DIR,
    ok = yaml2proto:build(BaseDir ++ "yaml",
        BaseDir ++ "proto", BaseDir ++ "proto_cmd", "3").